#ifndef LIBC_H
#define LIBC_H

#include <stdlib.h>
#include <stdio.h>
#include <limits.h>

struct __locale_map;

struct __locale_struct {
	const struct __locale_map *cat[6];
};

struct __libc {
	size_t page_size;
	struct __locale_struct global_locale;
	struct __locale_struct * locale;
    char * envline; /* nxos envline */
    char **environ; /* unix environ */
	char secure;
};

#define __environ libc.environ

#ifndef PAGE_SIZE
#define PAGE_SIZE libc.page_size
#endif

extern hidden_sym struct __libc __libc;
#define libc __libc

void __init_libc(char *, char **);

extern hidden_sym const char __libc_version[];

#endif
